import { getReq, postReq } from '@U/common'
import { getToken } from '@U/Auth'

// 获取素材详情
export const getMaterialDetails = (params = {}) => getReq('/api/channel-agent/material/info', params)
export const getMaterialDetailsCommon = (params = {}) => getReq('/api/common/material/info', params)

// 增加阅读数
export const addReadingCount = (params = {}) => postReq('/api/common/material/add-reading-count', params)

// 减少点赞数
export const decreaseLikingCount = (params = {}) => postReq('/api/common/material/decrease-liking-count', params)

// 增加点赞数
export const addLikingCount = (params = {}) => postReq('/api/common/material/add-liking-count', params)

// 增加分享数
export const addShareCount = (params = {}) => postReq('/api/common/material/add-transferring-count', params)

// 提交素材报表
export const commitMaterialForm = (params = {}) => postReq('/api/common/material/material-form/commit', params)
